#include <iostream>
#include <vector>
using namespace std;

class Person{
 private:
    int m_age;
    string m_name;
 public:
    Person(string name,int age):m_name(name),m_age(age){
        cout<<"Person()"<<endl;
    }
    ~Person(){
        
    }
    Person(const Person& p):m_name(move(p.m_name)),m_age(p.m_age){
        cout<<"拷贝"<<endl;
    }
    Person(const Person&& p):m_name(move(p.m_name)),m_age(p.m_age){
        cout<<"移动"<<endl;
    }
};

int main(){

    vector<Person> v;
    v.emplace_back(Person("a",2));

    cout<<"===="<<endl;

    vector<Person> v1;
    v1.push_back(Person("a",2));
    return 0;
}